<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="pojo.*,service.*,java.util.*,java.text.*"%>

<%
		request.setCharacterEncoding("utf-8");
		String Name = (String)request.getParameter("Name").trim();
		
		String Type = (String)request.getParameter("Type").trim();
		int t=Integer.parseInt(Type);
		String Quality = (String)request.getParameter("Quality").trim();
		String Picture = request.getParameter("Picture").trim();
		String Detail = request.getParameter("Detail").trim();
		int Sale=Integer.parseInt(request.getParameter("Sale"));
		String Price = request.getParameter("Price").trim();
		float price=Float.parseFloat(Price);
		String Id = request.getParameter("Id").trim();
		int id=Integer.parseInt(Id);
		DishesService dms = new DishesService(); 
	    dms.getUpdateByid(Name,t,Quality,Picture,Detail,Sale,price,id);
	    out.print("修改成功");		
	

		 
%>
<head>
<script type="text/javascript">
function tiao(){
	location.href="../dishes.jsp";
	};
	setTimeout(tiao,1000);


</script>

</head>
<body></body>
